| 123456789101112131415 |
- import { getAccount } from "@/lib/db/store";
- export async function GET(
- req: Request,
- { params }: { params: Promise<{ id: string }> },
- ) {
- const { id } = await params;
- const account = await getAccount(id);
- if (!account) {
- return Response.json({ error: "Account not found" }, { status: 404 });
- }
- return Response.json(account);
- }
|